package com.sfac.springCloudTest.service;


import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import org.sfac.common.vo.Result;
import org.sfac.common.vo.Search;
import org.sfac.test.entity.City;

import java.util.List;

public interface CityService {
    Result<City> insertCity(City city);

    Result<City> updateCity(City city);

    Result<Object> deleteCityByCityId(int cityId);

    City getCityByCityId(int cityId);

    City getCityByNames( String cityName,String localCityName);

    List<City> getCitiesByCountryId(int countryId);

    PageInfo<City> getCitiesBySearch(Search search);

   // Page<City> getCitiesBySearch2(Search search);
}
